package com.itheima.springbootenableother.config;

import com.itheima.springbootenableother.domain.Role;
import com.itheima.springbootenableother.domain.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zero
 * @date 2020/6/11
 */

@Configuration
public class UserConfig {

    @Bean
    public User user(){
        return new User();
    }

    @Bean
    public Role role(){
        return new Role();
    }
}
